package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Inhibit extends AbstractMethod {
    private static final String name = "inhibit";
    /**
    Inhibit other alerts in a category. The equal tags provides a list of tags that must be equal in order for an alert event to be inhibited.
    **/
    /**
    禁止类别中的其他警报。 equal标签提供了一个列表，这些标签必须相等才能禁止警报事件。
    **/
    public Inhibit(String category, String... equalTags) {
        super(new ArrayList<>(), name);
        //
        for(String argf : equalTags){
            this.args.add(new SingleQuotesArg(argf));
        }


        //
        this.args.add(new SingleQuotesArg(category));


    }
}
